<?php
/**
 * @author Artur Bier <izatop@gmail.com>
 * @package Application.Decorator
 *
 * @copyright TinyWEB CMS
 * @link http://tinywebcms.ru
 * @link http://cms.vingrad.ru
 * @version SVN: $Id$ 
 */
 
 /**
  * Decorator
  */
class AjaxDecorator extends Decorator
{
	/**
	 * IViewable
	 *
	 * @var IViewable
	 */
	protected $object;
	
	/**
	 * IView
	 *
	 * @var IView
	 */
	protected $view;

    public function __construct(IViewable $object)
    {
    	$this->object = $object;
    }

    /**
     * Врзвращает контент генерируемый контроллером.
     *
     * @return string
     */
    public function display()
    {
    	return $this->object->display();
    }
}

?>